package com.lxt.service.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.lxt.common.HttpResult;
import com.lxt.mapper.HrMapper;
import com.lxt.pojo.Employee;
import com.lxt.pojo.VO.EmployeeVO;
import com.lxt.service.HrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author kevin.lv
 * @date 2023/8/24 14:20
 */
@Service
public class HrServiceImpl implements HrService {

    @Autowired
    private HrMapper hrMapper;

    @Override
    public Employee queryEmployeeInfo(int empId) {
        return hrMapper.getEmpInfo(empId);
    }

    @Override
    public List<Employee> getListInfo(Employee employee) {
        return hrMapper.getEmpInfoList(employee);
    }


    @Override
    public List<Employee> getPGListInfo(EmployeeVO employeeVO) {
        return hrMapper.getPGListInfo(employeeVO);
    }

    @Override
    public int addEmployeeInfo(Employee employee) {
        return hrMapper.addEmpInfo(employee);
    }

    @Override
    public int updateEmployeeInfo(Employee employee) {
        return hrMapper.updateEmpInfo(employee);
    }

    @Override
    public int delEmployeeInfo(int empId) {
        return hrMapper.delEmpInfo(empId);
    }


}
